﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace EBA.MQ
{
    /// <summary>
    /// 消息内容解析
    /// </summary>
    public interface IPayLoad
    {
        /// <summary>
        /// 消息序列化
        /// </summary>
        /// <returns></returns>
        string Serialize();


        /// <summary>
        /// 消息反序列化
        /// </summary>
        /// <param name="message"></param>
        /// <returns></returns>
        IPayLoad Deserialize(string message);
    }
}
